<template>
  <div>
    <table>
      <tr><th>任务</th>
        <th>完成率(%)</th></tr>
    </table>
    <div style="overflow: scroll;overflow-x:hidden;height: 272px"><table style="overflow-x: hidden">
      <tr v-for="(item,index) in taskCom" :key="index"><td>{{item.task}}</td><td>{{item.tComplete}}</td></tr>
    </table></div>
  </div>

</template>

<script>
export default {
  name: "TaskComplete",
  props:{
   taskCom:{
     type:Array,
     default(){
       return[]
     }
   }
  },
  data(){
    return {
    }
  }
}
</script>

<style scoped>
table{
  width: 100%;
}
th{
  width: 50%;
  color: cyan;
}
td{
  width: 50%;
  color: aquamarine;
  text-align: center;
}
tr:nth-child(2n){
  background-color: rgba(255, 251, 240, 0.3);
}
::-webkit-scrollbar {
  width: 0 !important;
}
::-webkit-scrollbar {
  width: 0 !important;height: 0;
}

</style>
